#FROM dev.k2data.com.cn:5001/k2data/java-oracle:jdk_7
#FROM dev.k2data.com.cn:5001/ubuntu:14.04
FROM dev.kmx.k2data.com.cn:5001/k2data/ubuntu:14.04-jdk8-zh

#setup jdk (version >=1.8)
#ADD ./jdk-8u65-linux-x64.tar.gz /usr/local/
#ENV  JAVA_HOME=/usr/local/jdk1.8.0_65
#ENV  JRE_HOME=${JAVA_HOME}/jre
#ENV  CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
#ENV  PATH=${JAVA_HOME}/bin:$PATH

ARG branch
ARG commit
ARG buildtime
ARG owner
ARG env_para
LABEL branch=$branch \
        commit=$commit  \
        buildtime=$buildtime    \
        owner=$owner    \
        env_para=$env_para

RUN echo 'Asia/Shanghai' >/etc/timezone
ADD ./target/datastream.jar /opt/bin/
WORKDIR /opt/bin/
ENTRYPOINT java -jar datastream.jar








